package cn.dzhang.rcp.hyperbola;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
import org.eclipse.ui.console.IConsoleConstants;

import cn.dzhang.rcp.hyperbola.views.ContactView;

public class Perspective implements IPerspectiveFactory {

	@Override
	public void createInitialLayout(IPageLayout layout) {
		// layout.setEditorAreaVisible(false);
		String editorArea = layout.getEditorArea();

		layout.addView(ContactView.ID, IPageLayout.LEFT, .33f, editorArea);
		layout.getViewLayout(ContactView.ID).setCloseable(false);

		// layout.addStandaloneView(ContactView.ID, false, IPageLayout.LEFT,
		// .4f,
		// editorArea);

		layout.addView(IConsoleConstants.ID_CONSOLE_VIEW, IPageLayout.BOTTOM,
				.7f, editorArea);
	}

}
